// ActionScript file
import mx.managers.CursorManager;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
private function faultHandler(fault:FaultEvent):void
{
     CursorManager.removeBusyCursor();
     Alert.show( 
         "code:\n" + fault.fault.faultCode + 
         "\n\nMessage:\n" + fault.fault.faultString + 
         "\n\nDetail:\n" + fault.fault.faultDetail );
} 
private function resultHandler(evt:ResultEvent):void
{
     Alert.show( evt.message.body.toString() ); 
     // same as: evt.result.toString();
}